<div id="tracker-admin-current-full-hierarchy">
    <h3>{{#__}}current_full_hierarchy_title{{/__}}</h3>
    {{#hierarchy}}
        <ul class="tracker-hierarchy">{{> tracker-node}}</ul>
    {{/hierarchy}}
</div>
<div class="tracker-admin-hierarchy-edit-form">
    <h3>{{#__}}edit_children_title|{{tracker_name}}{{/__}}</h3>
    <form method="post"
        action="{{getTrackerUrl}}/?tracker={{getTrackerId}}&func=admin-hierarchy-update">
        <select
            class="tracker-admin-hierarchy-edit-children"
            name="children[]"
            multiple="multiple"
            {{# cannot_be_used_in_hierarchy }}disabled{{/ cannot_be_used_in_hierarchy }}
        >
            {{#getPossibleChildren}}
            <option value="{{id}}"{{selected}}>{{name}}</option>
            {{/getPossibleChildren}}
        </select>
        <p>
            <input type="submit" class="btn" value="{{getSubmitLabel}}" {{# cannot_be_used_in_hierarchy }}disabled{{/ cannot_be_used_in_hierarchy }}>
        </p>
    </form>

    {{# has_trackers_not_in_hierarchy }}
    <div>
        <p>{{#__}}cannot_be_used{{/__}}</p>
        <ul>
            {{# trackers_not_in_hierarchy }}
            <li><a href="/plugins/tracker/?tracker={{ getId }}&amp;func=admin-hierarchy">{{ getName }}</a></li>
            {{/ trackers_not_in_hierarchy }}
        </ul>
    </div>
    {{/ has_trackers_not_in_hierarchy }}
</div>
